/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.sirius.ms.sdk.model.ProjectEventType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * ProjectChangeEvent
 */
@JsonPropertyOrder({
  ProjectChangeEvent.JSON_PROPERTY_EVENT_TYPE,
  ProjectChangeEvent.JSON_PROPERTY_PROJECT_ID,
  ProjectChangeEvent.JSON_PROPERTY_COMPOUND_ID,
  ProjectChangeEvent.JSON_PROPERTY_FEATURED_ID,
  ProjectChangeEvent.JSON_PROPERTY_FORMULA_ID,
  ProjectChangeEvent.JSON_PROPERTY_STRUCTURE_IN_CH_I_KEY
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class ProjectChangeEvent {
  public static final String JSON_PROPERTY_EVENT_TYPE = "eventType";
  @jakarta.annotation.Nullable
  private ProjectEventType eventType;

  public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
  @jakarta.annotation.Nullable
  private String projectId;

  public static final String JSON_PROPERTY_COMPOUND_ID = "compoundId";
  @jakarta.annotation.Nullable
  private String compoundId;

  public static final String JSON_PROPERTY_FEATURED_ID = "featuredId";
  @jakarta.annotation.Nullable
  private String featuredId;

  public static final String JSON_PROPERTY_FORMULA_ID = "formulaId";
  @jakarta.annotation.Nullable
  private String formulaId;

  public static final String JSON_PROPERTY_STRUCTURE_IN_CH_I_KEY = "structureInChIKey";
  @jakarta.annotation.Nullable
  private String structureInChIKey;

  public ProjectChangeEvent() {
  }

  public ProjectChangeEvent eventType(@jakarta.annotation.Nullable ProjectEventType eventType) {
    
    this.eventType = eventType;
    return this;
  }

  /**
   * Get eventType
   * @return eventType
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_EVENT_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public ProjectEventType getEventType() {
    return eventType;
  }


  @JsonProperty(JSON_PROPERTY_EVENT_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEventType(@jakarta.annotation.Nullable ProjectEventType eventType) {
    this.eventType = eventType;
  }

  public ProjectChangeEvent projectId(@jakarta.annotation.Nullable String projectId) {
    
    this.projectId = projectId;
    return this;
  }

  /**
   * Get projectId
   * @return projectId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getProjectId() {
    return projectId;
  }


  @JsonProperty(JSON_PROPERTY_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setProjectId(@jakarta.annotation.Nullable String projectId) {
    this.projectId = projectId;
  }

  public ProjectChangeEvent compoundId(@jakarta.annotation.Nullable String compoundId) {
    
    this.compoundId = compoundId;
    return this;
  }

  /**
   * Get compoundId
   * @return compoundId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_COMPOUND_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getCompoundId() {
    return compoundId;
  }


  @JsonProperty(JSON_PROPERTY_COMPOUND_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCompoundId(@jakarta.annotation.Nullable String compoundId) {
    this.compoundId = compoundId;
  }

  public ProjectChangeEvent featuredId(@jakarta.annotation.Nullable String featuredId) {
    
    this.featuredId = featuredId;
    return this;
  }

  /**
   * Get featuredId
   * @return featuredId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_FEATURED_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getFeaturedId() {
    return featuredId;
  }


  @JsonProperty(JSON_PROPERTY_FEATURED_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFeaturedId(@jakarta.annotation.Nullable String featuredId) {
    this.featuredId = featuredId;
  }

  public ProjectChangeEvent formulaId(@jakarta.annotation.Nullable String formulaId) {
    
    this.formulaId = formulaId;
    return this;
  }

  /**
   * Get formulaId
   * @return formulaId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_FORMULA_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getFormulaId() {
    return formulaId;
  }


  @JsonProperty(JSON_PROPERTY_FORMULA_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFormulaId(@jakarta.annotation.Nullable String formulaId) {
    this.formulaId = formulaId;
  }

  public ProjectChangeEvent structureInChIKey(@jakarta.annotation.Nullable String structureInChIKey) {
    
    this.structureInChIKey = structureInChIKey;
    return this;
  }

  /**
   * Get structureInChIKey
   * @return structureInChIKey
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STRUCTURE_IN_CH_I_KEY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getStructureInChIKey() {
    return structureInChIKey;
  }


  @JsonProperty(JSON_PROPERTY_STRUCTURE_IN_CH_I_KEY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStructureInChIKey(@jakarta.annotation.Nullable String structureInChIKey) {
    this.structureInChIKey = structureInChIKey;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProjectChangeEvent projectChangeEvent = (ProjectChangeEvent) o;
    return Objects.equals(this.eventType, projectChangeEvent.eventType) &&
        Objects.equals(this.projectId, projectChangeEvent.projectId) &&
        Objects.equals(this.compoundId, projectChangeEvent.compoundId) &&
        Objects.equals(this.featuredId, projectChangeEvent.featuredId) &&
        Objects.equals(this.formulaId, projectChangeEvent.formulaId) &&
        Objects.equals(this.structureInChIKey, projectChangeEvent.structureInChIKey);
  }

  @Override
  public int hashCode() {
    return Objects.hash(eventType, projectId, compoundId, featuredId, formulaId, structureInChIKey);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProjectChangeEvent {\n");
    sb.append("    eventType: ").append(toIndentedString(eventType)).append("\n");
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    compoundId: ").append(toIndentedString(compoundId)).append("\n");
    sb.append("    featuredId: ").append(toIndentedString(featuredId)).append("\n");
    sb.append("    formulaId: ").append(toIndentedString(formulaId)).append("\n");
    sb.append("    structureInChIKey: ").append(toIndentedString(structureInChIKey)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

